<?php
use yii\helpers\Html;

$state = yii::$app->params['paperinfostate'];
?>
<table class="table table-hover">
    <thead>
            <th>考试</th>
            <th>分数</th>
            <th>满分</th>
            <th>状态</th>
            <th>考试时间</th>
            <th>操作</th>
    </thead>
    <tbody>
        <?php if($info):?>
        <?php foreach ($info as $index => $item):?>
        <tr>
            <td><?= $item['name'] ?></td>
            <td><?= $item['allscore'] ?></td>
            <td><?= $item['fullmarks'] ?></td>
            <td><?= $state[$item['state']] ?></td>
            <td><?= $item['create_time'] ?></td>
            <td><a href="<?=\app\service\UrlService::BuildUrl('/admin/personal/paperinfo',['studentpaperid'=>$item['sptableid']]);  ?>" >查看试卷详情</a></td>
        </tr>
        <?php endforeach; ?>
        <?php else: ?>
            <tr>
                <td colspan="6">没有考试记录  :( </td>
            </tr>
        <?php endif; ?>
    </tbody>

</table>

